const Router = require('@koa/router');
const fun = require('../controller/system/print.controller');
const config = require('../config');

const router = new Router({ prefix: `${config.ADMIN_PREFIX}` });

router.get('/sys-print', fun.getPrintList);
router.post('/sys-print', fun.createPrint);
router.put('/sys-print', fun.updatePrint);
router.delete('/sys-print', fun.deletePrints);
router.get('/sys-print-template', fun.getPrintTemplate);
router.post('/sys-print-template', fun.savePrintTemplate);

module.exports = router;
